/**
  ******************************************************************************
  * @file           : day02_10.c
  * @author         : Cola
  * @date           : 2023/3/22 1:21
  ******************************************************************************
  */

#include <stdio.h>

int main() {
    int a = 10;
    //int b = a = a + 1;  下面效果完全一致
    int b = ++a;
    printf("%d", b);
    printf("\n-----------\n");
    printf("%d", a);

    printf("\n-----------\n");
    int x = 10;
    int y = x++;   //写在后面和写在前面是有区别的
    printf("x = %d, y = %d", x, y);

    printf("\n-----------\n");
    int c = 10;
    int d = 5 * --c;
    printf("d = %d", d);

}